﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OFB.Domain;

namespace OFB.BLL.Repository
{
   public interface ICriteriaBLL: IRepository<Criteria>
    {
        ICollection<Criteria> FindAll(int startRow, int maxRow, out int totalRow);
        ICollection<Criteria> Filter(bool? status, int startRow, int maxRow, out int totalRow, string criteriaName, string criteriaId, string searchString);
        ICollection<Criteria> FindCriteriaName(string criteriaName);
        ICollection<Criteria> FindCriteriaNameUpdate(string criteriaName, int criteriaId);
        Criteria FindCriteriaById(int criteriaId);
        void ChangeStatus(int criteriaId);
        int CreateCriteria(string criteriaName, string description, bool status);
        int UpdateCriteria(int criteriaId, string criteriaName, string description);
        bool CriteriaUpdateable(int criteriaId);
    }
}
